package com.im.partchat.bean;

import com.im.partchat.db.PartChatDataBase;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;

/**
 * Created by fzl on 2017/6/29 0029.
 * VersionCode: 1
 * Desc:
 */
@Table(name = "t_user", database = PartChatDataBase.class, cachingEnabled = true)
public class User {

    /**
     * id : 2
     * name : 胡红泽
     * phone : 18537105573
     * sex : 1
     * email : null
     * headUrl : http://img1.imgtn.bdimg.com/it/u=1677309898,2762697342&fm=214&gp=0.jpg
     * token : tlCp71qE4c9NPRX4mH0xUoQhRlkSZr9bJqvIoRXXgjO18at8HXgzojqt4GjBMVIjZ/aZzUQVtbA4u81uh1LTyg==
     * position : 员工
     * seq : 2
     * deptId : 4
     */
    @PrimaryKey
    @Column(name = "user_id")
    private String id;
    @Column
    private String name;
    @Column
    private String jp;
    @Column
    private String phone;
    @Column
    private int sex;
    @Column
    private String email;
    @Column
    private String headUrl;
    @Column
    private String token;
    @Column
    private String position;
    @Column
    private int seq;
    @Column
    private String deptId;
    @Column
    private int friends;

    private boolean isChoosed = false;
    private boolean isEnable = true;


    public String getJp() {
        return jp;
    }

    public void setJp(String jp) {
        this.jp = jp;
    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public int getSeq() {
        return seq;
    }

    public void setSeq(int seq) {
        this.seq = seq;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public boolean isChoosed() {
        return isChoosed;
    }

    public void setChoosed(boolean choosed) {
        isChoosed = choosed;
    }

    public boolean isEnable() {
        return isEnable;
    }

    public void setEnable(boolean enable) {
        isEnable = enable;
    }

    public int getFriends() {
        return friends;
    }

    public void setFriends(int friends) {
        this.friends = friends;
    }

    public boolean isFriend() {
        return friends == 1;
    }
}
